<%@ Control Language="C#" AutoEventWireup="true" CodeFile="usrLoginStatus.ascx.cs"
    Inherits="controls_usrLoginStatus" %>
<div class="userinfo" runat="server" id="divLoginInfo">
    <asp:Panel runat="server" ID="pnlLoginInfo" DefaultButton="btnLogin">
        <asp:Label runat="server" ID="lblEmail" Text="<%$Resources:CarInsurance,EmailAddress%>" />:
        <asp:TextBox ID="txtEmail" runat="server" Width="100px" MaxLength="100" CssClass="al_mid" />
        <asp:RequiredFieldValidator ID="rfvEmail" CssClass="validationErrorControl" runat="server"
            ValidationGroup="userlogin" ErrorMessage="" Text="" ControlToValidate="txtEmail"
            Display="Dynamic"></asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator CssClass="validationErrorControl" ID="revEmail" runat="server"
            ValidationGroup="userlogin" ErrorMessage="" Text="" ControlToValidate="txtEmail"
            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator>
        <asp:Label runat="server" ID="lblPassword" Text="<%$Resources:CarInsurance,Password%>" />:
        <asp:TextBox ID="txtPassword" runat="server" Width="100px" MaxLength="20" TextMode="Password"  
            Style="vertical-align: middle;" />
        <asp:RequiredFieldValidator ID="rfvAuthCode" CssClass="validationErrorControl" runat="server"
            ValidationGroup="userlogin" ErrorMessage="" Text="" ControlToValidate="txtPassword"
            Display="Dynamic"></asp:RequiredFieldValidator>
        <input id="hidIsLoginTop" type="text" style="display:none;" runat="server" /> 
        <asp:Button ID="btnLogin" ValidationGroup="userlogin" runat="server" CssClass="button_login_top_second"
            OnClientClick="document.getElementById('ctl00_usrLoginStatus_hidIsLoginTop').value='1';LoadValidationErrorCss();" PostBackUrl="~/car-insurance/sign-in.aspx"
            Style="vertical-align: middle;" />
        &nbsp;
        <%--<asp:Button runat="server" ID="btnForgotPassword" CssClass="button_forgotten_password_top"
            OnClick="btnForgotPassword_Click" />--%>
        <asp:HyperLink runat="server" ID="hplForgotPassword" NavigateUrl="~/user/passwordrecovery.aspx"
            Text="<%$Resources:Menu,ForgotPassword%>" />
        &nbsp; <a href="#" id="hidr">
            <asp:Image ID="ImgClose2" runat="server" AlternateText="X" ImageUrl="/images/button/close_sub.png"
                CssClass="al_mid" /></a>
    </asp:Panel>
</div>
<!--After Login-->
<span class="userinfo" runat="server" id="divUserInfo">
    <img src="/images/icon/user.png" alt="User" class="al_mid" width="18" height="18" />
    <asp:HyperLink NavigateUrl="~/user/editprofile.aspx?ResultTitle=201" ID="hplEditProfile"
        runat="server">
        <asp:Label ID="lblUserName" Text="<%$Resources:Menu,EditProfile%>" runat="server"></asp:Label>
    </asp:HyperLink>&nbsp;&nbsp;&nbsp;&nbsp;
    <img src="/images/icon/quote.png" alt="User" class="al_mid" width="14" height="16" />
    <asp:HyperLink NavigateUrl="~/user/saved-quotes.aspx" ID="hplSavedQuotes" Text="<%$Resources:Menu,ViewSavedQuote%>"
        runat="server"></asp:HyperLink>&nbsp;&nbsp;&nbsp;&nbsp;
    <img src="/images/icon/setting.png" alt="User" class="al_mid" width="16" height="16" />
    <asp:HyperLink NavigateUrl="~/user/changepassword.aspx" ID="hplChangePassword" Text="<%$Resources:Menu,ChangePassword%>"
        runat="server"></asp:HyperLink>&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button runat="server" Visible="false" ID="btnLogout" CssClass="button_logout_top_second"
        ValidationGroup="usrlogout-none" CausesValidation="false" OnClick="btnLogout_Click" />
    &nbsp; <a href="#" id="hidr">
        <asp:Image ID="ImgClose1" runat="server" AlternateText="X" ImageUrl="/images/button/close_sub.png"
            CssClass="al_mid" /></a>
    <%--<script type="text/javascript">
        function ShowProcessing(aButton) {
            if (typeof (ValidatorValidate) != 'undefined') {
                if (Page_ClientValidate('none')) {
                    aButton.removeAttribute('onmouseout'); aButton.removeAttribute('onmouseup'); aButton.className = 'button_s_processing';
                }
            }
            else {
                aButton.removeAttribute('onmouseout'); aButton.removeAttribute('onmouseup'); aButton.className = 'button_s_processing';
            } return true;
        }
    </script>--%>
</span>